<table>
<?php
$maxVote=false;
foreach($votes as $vote){
	if($maxVote===false){
		$maxVote=$vote->voteCount;
	}
	//<td><?php echo $vote->voteCount? ></td>
	?>
	<tr>
		<td width="50%"><?php echo CHtml::link(Chtml::encode($vote->coffeeShop->name),array('/coffeeShop/viewShop','id'=>$vote->coffeeShop->id));?></td>
		
		<td width="50%"><span style="display:block;background-color:#B08443;width:<?php echo intval(($vote->voteCount)*100/$maxVote)?>%;">&nbsp;</span></td>
	</tr>

	<?php
}
?>
</table>
